package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AdminUserBetDetailMapper;
import com.ruoyi.system.domain.AdminUserBetDetail;
import com.ruoyi.system.service.IAdminUserBetDetailService;

/**
 * 用户投注明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-12-24
 */
@Service
public class AdminUserBetDetailServiceImpl implements IAdminUserBetDetailService 
{
    @Autowired
    private AdminUserBetDetailMapper adminUserBetDetailMapper;

    /**
     * 查询用户投注明细
     * 
     * @param id 用户投注明细ID
     * @return 用户投注明细
     */
    @Override
    public AdminUserBetDetail selectAdminUserBetDetailById(Long id)
    {
        return adminUserBetDetailMapper.selectAdminUserBetDetailById(id);
    }

    /**
     * 查询用户投注明细列表
     * 
     * @param adminUserBetDetail 用户投注明细
     * @return 用户投注明细
     */
    @Override
    public List<AdminUserBetDetail> selectAdminUserBetDetailList(AdminUserBetDetail adminUserBetDetail)
    {
        return adminUserBetDetailMapper.selectAdminUserBetDetailList(adminUserBetDetail);
    }

    /**
     * 新增用户投注明细
     * 
     * @param adminUserBetDetail 用户投注明细
     * @return 结果
     */
    @Override
    public int insertAdminUserBetDetail(AdminUserBetDetail adminUserBetDetail)
    {
        return adminUserBetDetailMapper.insertAdminUserBetDetail(adminUserBetDetail);
    }

    /**
     * 修改用户投注明细
     * 
     * @param adminUserBetDetail 用户投注明细
     * @return 结果
     */
    @Override
    public int updateAdminUserBetDetail(AdminUserBetDetail adminUserBetDetail)
    {
        return adminUserBetDetailMapper.updateAdminUserBetDetail(adminUserBetDetail);
    }

    /**
     * 批量删除用户投注明细
     * 
     * @param ids 需要删除的用户投注明细ID
     * @return 结果
     */
    @Override
    public int deleteAdminUserBetDetailByIds(Long[] ids)
    {
        return adminUserBetDetailMapper.deleteAdminUserBetDetailByIds(ids);
    }

    /**
     * 删除用户投注明细信息
     * 
     * @param id 用户投注明细ID
     * @return 结果
     */
    @Override
    public int deleteAdminUserBetDetailById(Long id)
    {
        return adminUserBetDetailMapper.deleteAdminUserBetDetailById(id);
    }
}
